//
//  MCLRTablView.h
//  MCmeituan
//
//  Created by Mc on 15/12/13.
//  Copyright © 2015年 Mc. All rights reserved.
//

#import <UIKit/UIKit.h>
@class MCLRTablView;
@protocol MCLRTablViewDatasource <NSObject>
@required

- (NSInteger)numberOfRowsInSection:(MCLRTablView *)lrTableView;

- (NSString *)lrTableView:(MCLRTablView *)lrTableView titleInLeftRow:(NSInteger)lRow;

- (NSArray *)lrTableView:(MCLRTablView *)lrTableView subDataInlLeftRow:(NSInteger)lRow;

@optional

- (NSString *)lrTableView:(MCLRTablView *)lrTableView iconInLeftRow:(NSInteger)lRow;

- (NSString *)lrTableView:(MCLRTablView *)lrTableView hightlightIconInLeftRow:(NSInteger)lRow;

@end

@protocol MCLRTablViewDelegate <NSObject>
@optional

- (void)lrTableView:(MCLRTablView *)lrTableView leftDidSelect:(NSInteger )leftRow andRightRow:(NSInteger)rightRow;

@end
@interface MCLRTablView : UIView

@property (nonatomic, strong) NSArray *fenleiData;

@property (nonatomic, weak) id<MCLRTablViewDatasource> datasource;

@property (nonatomic, weak) id<MCLRTablViewDelegate> delegate;

+ (instancetype)lrTableview;

@end
